package com.hdu.point_offer;

public class lcr182 {
    class Solution {
        public String dynamicPassword(String password, int target) {
            char[] s = new char[password.length()];
            int index = 0;
            for (int i = target; i < password.length() + target; i++)
            {
                s[index++] = password.charAt(i % password.length());
            }
            return new String(s);
        }
    }
}
